#/bin/sh
for i in *.ui
do
  name="`basename $i .ui`.py"
  pyuic4 "$i" > "$name"
  
  echo "$i converted to $name"
done 
for i in dialogs/*.ui
do
  name="`basename $i .ui`.py"
  pyuic4 "$i" > "dialogs/$name"
  
  echo "$i converted to dialogs/$name"
done 